# Django settings for fiteat project.
from settings_site import *

TEMPLATE_DEBUG = DEBUG

ADMINS = (
    # ('Your Name', 'your_email@domain.com'),
)

MANAGERS = ADMINS

SITE_ID = 1

# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True

# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
#     'django.template.loaders.eggs.load_template_source',
)

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    #'django.middleware.locale.LocaleMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.doc.XViewMiddleware',
    'fiteat.middleware.threadlocals.ThreadLocals',
)

ROOT_URLCONF = 'fiteat.urls'

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
#    'multilingual',
    'fiteat.apps.measurements',
    'fiteat.apps.cardio',
    #'fiteat.apps.strength',
    'fiteat.apps.main',
    'registration',
    'profiles',
)

AUTH_PROFILE_MODULE = 'main.Profile'

#LANGUAGE_CODE='ru'

LANGUAGES = (
    ('en', 'English'),
    ('ru', 'Russian'),
    ('he', 'Hebrew'),
)

DEFAULT_LANGUAGE = 1

TEMPLATE_CONTEXT_PROCESSORS = (
    'django.core.context_processors.auth',
    'django.core.context_processors.debug',
    'django.core.context_processors.i18n',
    #'multilingual.context_processors.multilingual',
)

# Number of days during which the activation token remains active after registration.
ACCOUNT_ACTIVATION_DAYS = 7

LOGIN_URL='/fiteat/accounts/login/'
LOGIN_REDIRECT_URL='/fiteat/accounts/login/'
